home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / SocketServices.idl < prev    next >
Text File  |  1996-05-01  |  9KB  |  222 lines

  1. /*
  2.      File:        SocketServices.idl
  3.  
  4.      Contains:    This file contains constants and data structures that
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __SOCKETSERVICES_IDL__
  19. #define __SOCKETSERVICES_IDL__
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24. #ifndef __TYPES_IDL__
  25. #include <Types.idl>
  26. #endif
  27. #ifndef __MIXEDMODE_IDL__
  28. #include <MixedMode.idl>
  29. #endif
  30.  
  31. #ifdef __SOMIDL__
  32.  
  33. #if FOR_SYSTEM7_ONLY
  34. /*
  35. ///////////////////////////////////////////////////////////////////////////////////////
  36.     TypeDefs for the Socket Services function codes
  37. */
  38. typedef Byte                    SS_BYTE;
  39.  
  40. typedef Byte                    SS_FLAGS8;
  41.  
  42. typedef Byte                    SS_IRQ;
  43.  
  44. typedef Byte                    SS_PWRLEVEL;
  45.  
  46. typedef UInt16                    SS_ADAPTER;
  47.  
  48. typedef UInt16                    SS_BCD;
  49.  
  50. typedef UInt16                    SS_COUNT;
  51.  
  52. typedef UInt16                    SS_EDC;
  53.  
  54. typedef UInt16                    SS_FLAGS16;
  55.  
  56. typedef UInt16                    SS_PAGE;
  57.  
  58. typedef UInt16                    SS_PWRINDEX;
  59.  
  60. typedef UInt16                    SS_SIGNATURE;
  61.  
  62. typedef UInt16                    SS_SKTBITS;
  63.  
  64. typedef UInt16                    SS_SOCKET;
  65.  
  66. typedef UInt16                    SS_SPEED;
  67.  
  68. typedef UInt16                    SS_WINDOW;
  69.  
  70. typedef UInt16                    SS_WORD;
  71.  
  72. typedef UInt32                    SS_BASE;
  73.  
  74. typedef UInt32                    SS_FLAGS32;
  75.  
  76. typedef UInt32                    SS_OFFSET;
  77.  
  78. typedef UInt32                    SS_SIZE;
  79.  
  80. typedef Ptr                        SS_PTR;
  81.  
  82. typedef OSErr                    SS_RETCODE;
  83.  
  84. typedef SOMLargeStruct            SS_SCHARTBL;                /* Derived from a struct of 10 bytes in size */
  85.  
  86. typedef SOMLargeStruct            SS_SISTRUCT;                /* Derived from a struct of 14 bytes in size */
  87.  
  88. /* minimum string length*/
  89. typedef SOMLargeStruct            SS_VISTRUCT;                /* Derived from a struct of 6 bytes in size */
  90.  
  91. typedef SOMLargeStruct            SS_ACHARTBL;                /* Derived from a struct of 10 bytes in size */
  92.  
  93. typedef SOMTwoByteStruct        SS_PWRENTRY;                /* Derived from a struct of 2 bytes in size */
  94.  
  95. typedef SOMLargeStruct            SS_AISTRUCT;                /* Derived from a struct of 20 bytes in size */
  96.  
  97. typedef SOMLargeStruct            SS_MEMWINTBL;                /* Derived from a struct of 34 bytes in size */
  98.  
  99. typedef SOMLargeStruct            SS_IOWINTBL;                /* Derived from a struct of 26 bytes in size */
  100.  
  101. typedef SOMLargeStruct            SS_WISTRUCT;                /* Derived from a struct of 66 bytes in size */
  102.  
  103. /*
  104. ------------------------------------------------------------------------------------------------------------------------------------------------
  105.     function selectors passed to Socket Service entry point
  106. ------------------------------------------------------------------------------------------------------------------------------------------------
  107. */
  108. /*    SSVendorSpecificPB.function values*/
  109. /*
  110. ------------------------------------------------------------------------------------------------------------------------------------------------
  111.     defines for the Socket Services function codes
  112. ------------------------------------------------------------------------------------------------------------------------------------------------
  113. */
  114. /* Vendor Specific Apple Socket Capabilities */
  115. /*
  116. ------------------------------------------------------------------------------------------------------------------------------------------------
  117.     Universal ProcPtr for Socket Service entry point
  118. ------------------------------------------------------------------------------------------------------------------------------------------------
  119. */
  120. typedef OpaquePtr PCCardSSEntryProcPtr;
  121. typedef OpaquePtr PCCardSSEntryUPP;
  122. /*
  123. ------------------------------------------------------------------------------------------------------------------------------------------------
  124.     Card Services calls used by a Socket Service
  125. ------------------------------------------------------------------------------------------------------------------------------------------------
  126. */
  127. typedef SOMLargeStruct            CSEventEntryPB;                /* Derived from a struct of 12 bytes in size */
  128.  
  129. typedef OpaquePtr PCCardCSEntryProcPtr;
  130. typedef OpaquePtr PCCardCSEntryUPP;
  131. /*------------        AddSocketServices        ------------                            */
  132. typedef SOMLargeStruct            AddSocketServicesPB;        /* Derived from a struct of 20 bytes in size */
  133.  
  134. /*------------         ReplaceSocketServices    ------------                            */
  135. typedef SOMLargeStruct            ReplaceSocketServicesPB;    /* Derived from a struct of 18 bytes in size */
  136.  
  137. /*
  138. ------------------------------------------------------------------------------------------------------------------------------------------------
  139.     parameter blocks for each Socket Service function
  140. ------------------------------------------------------------------------------------------------------------------------------------------------
  141. */
  142. typedef SOMFourByteStruct        SSAcknowledgeInterruptPB;    /* Derived from a struct of 4 bytes in size */
  143.  
  144. typedef SOMLargeStruct            SSGetAccessOffsetsPB;        /* Derived from a struct of 12 bytes in size */
  145.  
  146. typedef SOMFourByteStruct        SSGetAdapterCountPB;        /* Derived from a struct of 4 bytes in size */
  147.  
  148. typedef SOMFourByteStruct        SSGetSetAdapterPB;            /* Derived from a struct of 4 bytes in size */
  149.  
  150. typedef SOMLargeStruct            SSGetSetEDCPB;                /* Derived from a struct of 8 bytes in size */
  151.  
  152. typedef SOMLargeStruct            SSGetSetPagePB;                /* Derived from a struct of 12 bytes in size */
  153.  
  154. typedef SOMLargeStruct            SSGetSetPriorHandlerPB;        /* Derived from a struct of 8 bytes in size */
  155.  
  156. typedef SOMLargeStruct            SSGetSetSocketPB;            /* Derived from a struct of 16 bytes in size */
  157.  
  158. typedef SOMLargeStruct            SSGetSetSSAddrPB;            /* Derived from a struct of 10 bytes in size */
  159.  
  160. typedef SOMLargeStruct            SSGetSetWindowPB;            /* Derived from a struct of 18 bytes in size */
  161.  
  162. typedef SOMLargeStruct            SSGetSSInfoPB;                /* Derived from a struct of 8 bytes in size */
  163.  
  164. typedef SOMLargeStruct            SSGetStatusPB;                /* Derived from a struct of 10 bytes in size */
  165.  
  166. typedef SOMLargeStruct            SSGetVendorInfoPB;            /* Derived from a struct of 10 bytes in size */
  167.  
  168. typedef SOMLargeStruct            SSInquireAdapterPB;            /* Derived from a struct of 12 bytes in size */
  169.  
  170. typedef SOMLargeStruct            SSInquireEDCPB;                /* Derived from a struct of 8 bytes in size */
  171.  
  172. typedef SOMLargeStruct            SSInquireSocketPB;            /* Derived from a struct of 12 bytes in size */
  173.  
  174. typedef SOMLargeStruct            SSInquireWindowPB;            /* Derived from a struct of 12 bytes in size */
  175.  
  176. typedef SOMFourByteStruct        SSPauseEDCPB;                /* Derived from a struct of 4 bytes in size */
  177.  
  178. typedef SOMLargeStruct            SSReadEDCPB;                /* Derived from a struct of 6 bytes in size */
  179.  
  180. typedef SOMFourByteStruct        SSResetSocketPB;            /* Derived from a struct of 4 bytes in size */
  181.  
  182. typedef SOMFourByteStruct        SSResumeEDCPB;                /* Derived from a struct of 4 bytes in size */
  183.  
  184. typedef SOMFourByteStruct        SSStartEDCPB;                /* Derived from a struct of 4 bytes in size */
  185.  
  186. typedef SOMFourByteStruct        SSStopEDCPB;                /* Derived from a struct of 4 bytes in size */
  187.  
  188. typedef SOMLargeStruct            SSVendorSpecificPB;            /* Derived from a struct of 16 bytes in size */
  189.  
  190. /*    `attributes' constants */
  191. /*
  192. ------------------------------------------------------------------------------------------------------------------------------------------------
  193.     Non-specific Socket Services Functions
  194. ------------------------------------------------------------------------------------------------------------------------------------------------
  195. */
  196. /*
  197. ------------------------------------------------------------------------------------------------------------------------------------------------
  198.     Adapter Functions
  199. ------------------------------------------------------------------------------------------------------------------------------------------------
  200. */
  201. /*
  202. ------------------------------------------------------------------------------------------------------------------------------------------------
  203.     Socket Functions
  204. ------------------------------------------------------------------------------------------------------------------------------------------------
  205. */
  206. /*
  207. ------------------------------------------------------------------------------------------------------------------------------------------------
  208.     Window Functions
  209. ------------------------------------------------------------------------------------------------------------------------------------------------
  210. */
  211. /*
  212. ------------------------------------------------------------------------------------------------------------------------------------------------
  213.     Error Detection Functions
  214. ------------------------------------------------------------------------------------------------------------------------------------------------
  215. */
  216. #endif
  217.  
  218. #endif /* __SOMIDL__ */
  219.  
  220. #endif /* __SOCKETSERVICES_IDL__ */
  221.  
  222.